package com.markbuikema.juliana32.model.teams;

import java.io.Serializable;

public class TableRow implements Comparable<TableRow>, Serializable {

	private static final long serialVersionUID = -7216462360946364738L;
	
	private String teamName;
	private String teamId;
	private int position;
	private String imgUrl;
	private int played;
	private int won;
	private int drawn;
	private int lost;
	private int points;
	private int minusPoints;
	private int scored;
	private int conceded;
	private String compType;
	private String periode;

	

	public TableRow(String teamName, String teamId, String position, String imgUrl, String played, String won, String draw, String lost, String points,
			String minusPoints, String scored, String conceded, String compType, String periode) {
		this.teamName = teamName;
		this.teamId = teamId;
		this.position = Integer.parseInt(position);
		this.imgUrl = imgUrl;
		this.played = Integer.parseInt(played);
		this.won = Integer.parseInt(won);
		this.drawn = Integer.parseInt(draw);
		this.lost = Integer.parseInt(lost);
		this.points = Integer.parseInt(points);
		this.minusPoints = Integer.parseInt(minusPoints);
		this.scored = Integer.parseInt(scored);
		this.conceded = Integer.parseInt(conceded);
		this.compType = compType;
		this.periode = periode;
	}

	public String getTeamName() {
		return teamName;
	}

	public String getTeamId() {
		return teamId;
	}

	public int getPosition() {
		return position;
	}

	public String getImgUrl() {
		return imgUrl;
	}

	public int getPlayed() {
		return played;
	}

	public int getWon() {
		return won;
	}

	public int getDrawn() {
		return drawn;
	}

	public int getLost() {
		return lost;
	}

	public int getPoints() {
		return points;
	}

	public int getMinusPoints() {
		return minusPoints;
	}

	public int getScored() {
		return scored;
	}

	public int getConceded() {
		return conceded;
	}

	public String getCompType() {
		return compType;
	}

	public String getPeriode() {
		return periode;
	}

	@Override
	public int compareTo(TableRow another) {

		return position - another.position;

	}
}